﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;
using Public;

namespace BUS
{
    public class NhapKho_BUS
    {
        NhapKho_DAL nk_dal = new NhapKho_DAL();
        NhapKho_PB nk_pb=new NhapKho_PB();

        public DataTable LayDSNCC()
        {
            return nk_dal.LayDSNCC();
        }
        public DataTable LayTenNCC(string mancc)
        {
            return nk_dal.LayTenNCC(mancc);
        }
        public int ThemNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.ThemNhapKho(nk_pb);
        }
        public int SuaNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.SuaNhapKho(nk_pb);
        }
        public int XoaNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.XoaNhapKho(nk_pb);
        }
        public int XoaNhapKho1(NhapKho_PB nk_pb)
        {
            return nk_dal.XoaNhapKho1(nk_pb);
        }
        public DataTable LayDSPhieuNhap()
        {
            return nk_dal.LayDSPhieuNhap();
        }
        public DataTable LayDSTonKho()
        {
            return nk_dal.LayDSTonKho();
        }
        public DataTable LayDSKho()
        {
            return nk_dal.LayDSKho();
        }
        public DataTable LayDSCTNhapKho()
        {
            return nk_dal.LayDSCTNhapKho();
        }
        public int ThemCTNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.ThemCTNhapKho(nk_pb);
        }
        public int SuaCTNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.SuaCTNhapKho(nk_pb);
        }
        public int XoaCTNhapKho(NhapKho_PB nk_pb)
        {
            return nk_dal.XoaCTNhapKho(nk_pb);
        }
        public DataTable TimMaPhieuNhap(string ma)
        {
            return nk_dal.TimMaPhieuNhap(ma);
        }
        public DataTable TimID(NhapKho_PB nk_pb)
        {
            return nk_dal.TimID(nk_pb);
        }
        public string NextID_CTN()
        {
            return nk_dal.NextID_CTN();
        }
        public string NextID_PN()
        {
            return nk_dal.NextID_PN();
        }
        public int ThemTonKho(NhapKho_PB nk_pb)
        {
            return nk_dal.ThemTonKho(nk_pb);
        }
        public int SuaTonKho(NhapKho_PB nk_pb)
        {
            return nk_dal.SuaTonKho(nk_pb);
        }
        public bool CheckExists(string mavattu,string makho)
        {
            return nk_dal.CheckExists(mavattu,makho);
        }
        public int LaySLTonKho(string mavattu,string makho)
        {
            return nk_dal.LaySLTonKho(mavattu,makho);
        }
        public DataTable LayDSCTNhapKho(string ma)
        {
            return nk_dal.LayDSCTNhapKho(ma);
        }
        public string NextID_TK()
        {
            return nk_dal.NextID_TK();
        }
    }
}
